import { axios } from '@/utils/request'

/**
 * 查询账单流水
 *
 * @author anti
 * @date 2021-04-24 13:44:46
 */
export function billWaterPage (parameter) {
  return axios({
    url: '/billWater/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 账单流水列表
 *
 * @author anti
 * @date 2021-04-24 13:44:46
 */
export function billWaterList (parameter) {
  return axios({
    url: '/billWater/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加账单流水
 *
 * @author anti
 * @date 2021-04-24 13:44:46
 */
export function billWaterAdd (parameter) {
  return axios({
    url: '/billWater/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑账单流水
 *
 * @author anti
 * @date 2021-04-24 13:44:46
 */
export function billWaterEdit (parameter) {
  return axios({
    url: '/billWater/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除账单流水
 *
 * @author anti
 * @date 2021-04-24 13:44:46
 */
export function billWaterDelete (parameter) {
  return axios({
    url: '/billWater/delete',
    method: 'post',
    data: parameter
  })
}

export function getBillWaterDetail (parameter) {
  return axios({
    url: '/billWater/getBillWaterDetail/' + parameter,
    method: 'get'
  })
}

export function shenhe (parameter1, parameter2) {
  return axios({
    url: '/billWater/shenhe/' + parameter1 + '/' + parameter2,
    method: 'get'
  })
}

export function exportExcel (parameter) {
  return axios({
    url: '/billWater/exportExcel',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
